package cn.basic.social.api.dingtalk.channel.internal.response;

import cn.basic.social.api.dingtalk.DingResponse;

import java.io.Serializable;

/**
 * @ClassName InternalGetUserInfoResponse
 * @Description 获取用户通讯录个人信息返回值
 * @Author yk.zlf
 * @Date 2023/10/20 14:02
 */
public class InternalGetUserInfoResponse extends DingResponse implements Serializable {

    /**
     * 用户的钉钉昵称
     */
    private String nick;

    /**
     * 头像URL
     */
    private String avatarUrl;

    /***
     * 如果要获取用户手机号，需要在开发者后台申请个人手机号信息权限
     */
    private String mobile;

    /**
     * 用户的openId
     */
    private String openId;

    /**
     * 用户的unionId
     */
    private String unionId;

    /**
     * 个人邮箱
     */
    private String email;

    /**
     * 手机号对应的国家号
     */
    private String stateCode;

    public InternalGetUserInfoResponse() {
    }

    public InternalGetUserInfoResponse(String nick, String avatarUrl, String mobile, String openId, String unionId, String email, String stateCode) {
        this.nick = nick;
        this.avatarUrl = avatarUrl;
        this.mobile = mobile;
        this.openId = openId;
        this.unionId = unionId;
        this.email = email;
        this.stateCode = stateCode;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getStateCode() {
        return stateCode;
    }

    public void setStateCode(String stateCode) {
        this.stateCode = stateCode;
    }
}
